

reg authorcit ecprscale party_org party_pos party_elec 
outreg2 using results.doc, replace ctitle (centrality author-based citation network - no control) alpha(0.001, 0.01, 0.05) stats(coef se) ci
reg authorcit ecprscale party_org party_pos party_elec estimatedgender publication citations year
outreg2 using results.doc, append ctitle (centrality author-based citation network - w/ controls) alpha(0.001, 0.01, 0.05) stats(coef se) ci
coefplot, xline(0) drop(_cons estimatedgender publication citations year)
graph save author

reg coauthor ecprscale party_org party_pos party_elec 
outreg2 using results.doc, append ctitle (centrality co-authorship network - no control) alpha(0.001, 0.01, 0.05) stats(coef se) ci
reg coauthor ecprscale party_org party_pos party_elec estimatedgender publication citations year
outreg2 using results.doc, append ctitle (centrality co-authorship network - w/ controls) alpha(0.001, 0.01, 0.05) stats(coef se) ci
coefplot, xline(0) drop(_cons estimatedgender publication citations year)
graph save co-author

graph combine author.gph co-author.gph

mlogit clusterauthor ecprscale party_org party_pos party_elec 
outreg2 using results2.doc, replace ctitle (cluster - no control) alpha(0.001, 0.01, 0.05) stats(coef se) ci
mlogit clusterauthor ecprscale party_org party_pos party_elec 
outreg2 using results2.doc, append ctitle (cluster - w/ control) alpha(0.001, 0.01, 0.05) stats(coef se) ci

*normalization DVs
gen authorcit_norm = (authorcit - 0)/(296-0)
gen coauthor_norm = (coauthor - 0)/(12-0)
gen cluster_norm = (clusterauthor - 0) / (3-0)
gen cluster2_norm = (clustercoauthor - 0) / (4-0)

*normalization controls
gen citations_norm = (citations - 0)/(2961-0)
gen publication_norm = (publication - 1)/(17-1)
gen year_norm = (year - 1995)/(2025-1995)
gen gender_norm = (estimatedgender - 1)/(2-1)

*normalization IVs
gen ecpr_norm = (ecprscale - 0) / (4-0)
gen elec_norm = (party_ele_rec - 0) / (3-0)
gen pos_norm = (party_pos_rec - 0) / (3-0)
gen org_norm = (party_org_rec - 0) / (3-0)

reg authorcit_norm ecpr_norm elec_norm pos_norm org_norm
outreg2 using results3.doc, replace ctitle (centrality author-based citation network - no control) alpha(0.001, 0.01, 0.05) ci
reg authorcit_norm ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm 
outreg2 using results3.doc, append ctitle (centrality author-based citation network - w/ controls) alpha(0.001, 0.01, 0.05) ci
coefplot, xline(0) drop(_cons gender_norm citations_norm publication_norm year_norm)
graph save author_norm

reg coauthor_norm  ecpr_norm elec_norm pos_norm org_norm 
outreg2 using results5.doc, replace ctitle (centrality co-authorship network - no control) alpha(0.001, 0.01, 0.05) ci
reg coauthor_norm  ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm 
outreg2 using results5.doc, append ctitle (centrality co-authorship network - w/ controls) alpha(0.001, 0.01, 0.05) ci
coefplot, xline(0) drop(_cons gender_norm citations_norm publication_norm year_norm)
graph save co-author_norm

graph combine author_norm.gph co-author_norm.gph

mlogit cluster_norm ecpr_norm elec_norm pos_norm org_norm 
outreg2 using results4.doc, replace ctitle (cluster - no control) alpha(0.001, 0.01, 0.05) ci
mlogit cluster_norm ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm  year_norm  
outreg2 using results4.doc, append ctitle (cluster - w/ control) alpha(0.001, 0.01, 0.05) ci


 mlogit cluster_norm ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm  year_norm  
  margins, dydx(ecpr_norm elec_norm pos_norm org_norm) post predict (pr outcome(0.3333333432674408))
  estimates store cluster1
  
  mlogit cluster_norm ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm  year_norm  
   margins, dydx(ecpr_norm elec_norm pos_norm org_norm) post predict (pr outcome(0.6666666865348816))
    estimates store cluster2
   
   mlogit cluster_norm ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm  year_norm  
    margins, dydx(ecpr_norm elec_norm pos_norm org_norm) post predict (pr outcome(1))
	 estimates store cluster3

mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm 
outreg2 using results6.doc, replace ctitle (cluster - no control) alpha(0.001, 0.01, 0.05) ci
mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm
outreg2 using results6.doc, append ctitle (cluster - control) alpha(0.001, 0.01, 0.05) ci


 mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm  
  margins, dydx(ecpr_norm elec_norm pos_norm org_norm) post predict (pr outcome(1))
  estimates store cluster4
  
  mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm  
   margins, dydx(ecpr_norm elec_norm pos_norm org_norm) post predict (pr outcome(2))
    estimates store cluster5
   
   mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm  
    margins, dydx(ecpr_norm elec_norm pos_norm org_norm) post predict (pr outcome(3))
	 estimates store cluster6

	    mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm  
    margins, dydx(ecpr_norm elec_norm pos_norm org_norm) post predict (pr outcome(4))
	 estimates store cluster7
	 
mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm if clustercoauthor == 0 | clustercoauthor == 1
estimates store A
mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm if clustercoauthor == 0 | clustercoauthor == 2
estimates store B
mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm if clustercoauthor == 0 | clustercoauthor == 3
estimates store C
mlogit clustercoauthor ecpr_norm elec_norm pos_norm org_norm gender_norm citations_norm publication_norm year_norm if clustercoauthor == 0 | clustercoauthor == 4
estimates store D

coefplot A B C D, xline(0) drop(_cons gender_norm citations_norm publication_norm year_norm)
